package com.zj;

import com.sun.deploy.net.HttpResponse;
import org.springframework.http.HttpRequest;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class HelloServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String param=request.getParameter("param");
        response.setHeader("content-type", "text/html;charset=UTF-8");

        response.getWriter().println("<h1>Hello,"+param+" </h1>");
    }
}
